/*****************************************************************************
* COSC1283/1284 - Programming Techniques
* Semester 1 2011 Assignment #2 - Gloria Jean's Coffee system
* Full Name        : LE YAN
* Student Number   : 3262302
* Yallara Username : s3262302
* Course Code      : COSC1284
* Program Code     : BP232
* Start up code provided by Christopher Hoobin and Xiaodong Li
*****************************************************************************/

#ifndef GJC_UTILITY_H
#define GJC_UTILITY_H

/* Function prototypes. */
void readRestOfLine();
int systemInit(GJCType*);
int loadData(GJCType*, char*, char*);
void systemFree(GJCType*);
void printmenu(GJCType *menu, char categoryType);
int insertlist(GJCType *menu, CategoryTypePtr category);
int delete_category( GJCType *menu, char *id );
int insertitem( GJCType *menu, char *categoryId, ItemTypePtr item);
void delete_all_items( CategoryTypePtr category );
void free_categories( GJCType *menu );
#endif
